<?php
	include ("../include/config.php");	
	$name = $_POST["name"];
	$address = $_POST["address"];
	$website = $_POST["website"];
	$description = $_POST["description"];	
	$price = $_POST["price"];
	$image = $_POST["image"];
	$hotelId = $_POST["hotelId"];
	
	echo $name.$address.$website.$description.$price.$image;
	
	$strUpdate = "
		UPDATE tbl_hotel 
		SET hotelname='$name', hoteladdress='$address', hotelwebsite='$website', hoteldescription='$description', hotelprice='$price', image='$image'
		WHERE hotelID='$hotelId'
	";
	mysql_query("$strUpdate") or die("Invalid query: " . mysql_error());
	
		
?>
<html><head><meta http-equiv="refresh" content="1;url=success.php">
<title>Redirect</title></head>
<body bgcolor="#000000">
<br><br><br>

<center><img src="icon/processing.gif"/><font color=#ffffff face=arial size=3><b>The system is processing ...</font>
</center>
</body></html>